package com.foreverwin.jzymes.qc.check.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.foreverwin.jzymes.qc.check.mapper.QcCheckFaiFailMapper;
import com.foreverwin.jzymes.qc.check.domain.QcCheckFaiFail;
import com.foreverwin.jzymes.qc.check.service.IQcCheckFaiFailService;

/**
 * 三次元测量数据 服务层实现
 * 
 * @author ervin
 * @date 2019-05-05
 */
@Service
public class QcCheckFaiFailServiceImpl implements IQcCheckFaiFailService
{
	@Autowired
	private QcCheckFaiFailMapper qcCheckFaiFailMapper;

	/**
     * 查询三次元测量数据信息
     * 
     * @param handle 三次元测量数据ID
     * @return 三次元测量数据信息
     */
    @Override
	public QcCheckFaiFail selectQcCheckFaiFailById(String handle)
	{
	    return qcCheckFaiFailMapper.selectQcCheckFaiFailById(handle);
	}
	
	/**
     * 查询三次元测量数据列表
     * 
     * @param qcCheckFaiFail 三次元测量数据信息
     * @return 三次元测量数据集合
     */
	@Override
	public List<QcCheckFaiFail> selectQcCheckFaiFailList(QcCheckFaiFail qcCheckFaiFail)
	{
	    return qcCheckFaiFailMapper.selectQcCheckFaiFailList(qcCheckFaiFail);
	}
	
    /**
     * 新增三次元测量数据
     * 
     * @param qcCheckFaiFail 三次元测量数据信息
     * @return 结果
     */
	@Override
	public int insertQcCheckFaiFail(QcCheckFaiFail qcCheckFaiFail)
	{
	    return qcCheckFaiFailMapper.insertQcCheckFaiFail(qcCheckFaiFail);
	}
	
	/**
     * 修改三次元测量数据
     * 
     * @param qcCheckFaiFail 三次元测量数据信息
     * @return 结果
     */
	@Override
	public int updateQcCheckFaiFail(QcCheckFaiFail qcCheckFaiFail)
	{
	    return qcCheckFaiFailMapper.updateQcCheckFaiFail(qcCheckFaiFail);
	}

	/**
     * 删除三次元测量数据对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteQcCheckFaiFailByIds(String ids)
	{
		return qcCheckFaiFailMapper.deleteQcCheckFaiFailByIds(ids.split(","));
	}
	
}
